#-*- coding:utf-8 -*-
# Author:Ami

import queue

# q = queue.Queue()
#
#
# q.put("d1")
# q.put("d2")
# q.put("d3")
#
# print(q.qsize())
# print(q.get())
# print(q.get())
# print(q.get())

# q = queue.LifoQueue()
#
# q.put("d1")
# q.put("d2")
# q.put("d3")
#
# print(q.qsize())
# print(q.get())
# print(q.get())
# print(q.get())

q=queue.PriorityQueue()

q.put((-1,"d1"))
q.put((10,"d2"))
q.put((1,"d3"))
q.put((2,"d5"))

print(q.get())
print(q.get())
print(q.get())
print(q.get())

